{!! $grid->renderFilter() !!}

<div class="card-box admin">
    <div class="card-box-title">
        {!! $grid->renderCreateButton() !!}
        {!! $grid->renderHeaderTools() !!}
        {!! $grid->renderExportButton() !!}
    </div>

    <div class="card-box-content no-padding" style="border-right: none;">
        <table class="layui-table layui-form">
            <colgroup>
                @foreach($grid->columns() as $column)
                    <col width="{{ $column->width() }}">
                @endforeach
            </colgroup>
            <thead>
            <tr>
                @foreach($grid->columns() as $column)
                    <th>{!! $column->getLabel() !!}{!! $column->sorter() !!}</th>
                @endforeach
            </tr>
            </thead>
            <tbody>
            @foreach($grid->rows() as $row)
                <tr {!! $row->getHtmlAttributes() !!}>
                    @foreach($grid->columnNames as $name)
                        <td>{!! $row->column($name) !!}</td>
                    @endforeach
                </tr>
            @endforeach
            </tbody>
        </table>
    </div>

    <div class="card-box-footer" style="border-top: none;">
        {!! $grid->paginator() !!}
    </div>
</div>
